package po.meeting;
/**
 * 会议
 * @author admin
 *
 */

import java.time.LocalDateTime;

import po.emp.Department;
import po.emp.Empoyee;

public class Meeting {
	private int meetId;
	private Empoyee leader;  //发起人
	private LocalDateTime meetTime; //使用开始时间
	private double useTime;  //使用几个小时
	private String content;  //会议内容
	private Department depart;  //会议部门
	private Room room;   //会议使用的房间
	
	public Meeting() {
		super();
	}

	public Meeting(int meetId, Empoyee leader, LocalDateTime meetTime, double useTime, String content,
			Department depart, Room room) {
		super();
		this.meetId = meetId;
		this.leader = leader;
		this.meetTime = meetTime;
		this.useTime = useTime;
		this.content = content;
		this.depart = depart;
		this.room = room;
	}
	

	public Meeting(int meetId, LocalDateTime meetTime, double useTime) {
		super();
		this.meetId = meetId;
		this.meetTime = meetTime;
		this.useTime = useTime;
	}

	public int getMeetId() {
		return meetId;
	}

	public void setMeetId(int meetId) {
		this.meetId = meetId;
	}

	public Empoyee getLeader() {
		return leader;
	}

	public void setLeader(Empoyee leader) {
		this.leader = leader;
	}

	public LocalDateTime getMeetTime() {
		return meetTime;
	}

	public void setMeetTime(LocalDateTime meetTime) {
		this.meetTime = meetTime;
	}

	public double getUseTime() {
		return useTime;
	}

	public void setUseTime(double useTime) {
		this.useTime = useTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Department getDepart() {
		return depart;
	}

	public void setDepart(Department depart) {
		this.depart = depart;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	@Override
	public String toString() {
		return "Meeting [meetId=" + meetId + ", meetTime=" + meetTime + ", useTime=" + useTime + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + meetId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Meeting other = (Meeting) obj;
		if (meetId != other.meetId)
			return false;
		return true;
	}
	
}
